package com.example.mybatis.business;

import com.example.mybatis.form.UserForm;
import com.example.mybatis.model.UserTO;
import java.util.List;

public interface IUserBusiness {
    UserTO queryUsersByAccount(String userAccount);

    void addUserInfo(UserTO userTO)throws Exception;

    void updateUserInfo(UserTO userTO)throws Exception;

    void batchInsertUserInfo(List<UserTO> items) throws Exception;

    List<UserTO> selectAllUser(int startIndex,int pageSize);

    int queryTotalRows(String dbName);

    void batchUpdateUserInfo(List<UserTO> items) throws Exception;

    void deleteUserInfo(String userAccount) throws Exception;

    void batchDeleteUserInfo(List<String> userAccounts) throws Exception;

    List<String> queryExistUserAccounts(List<String> userAccounts);

    List<UserTO> searchUsers(UserForm userForm) throws Exception;


}
